﻿using System;
using System.Drawing;
using System.Collections.Generic;

namespace OOXMLGenerator.DataStructure
{
    /// <summary>
    /// Represents the template of MS Office data.
    /// </summary>
    internal class DataStructure
    {
        #region Public Members ...
        /// <summary>
        /// Data structure image for Company Logo
        /// </summary>
        public Image CompanyLogo { get; set; }

        /// <summary>
        /// Data structure header.
        /// </summary>
        public StructureHeader Header { get; set; }

        /// <summary>
        /// Data structure list of section contents.
        /// </summary>
        public List<SectionContent> Content { get; set; }

        #endregion

        #region Constructors

        /// <summary>
        /// Empty Constructor - initializes a new instance of the DataStructure Class.
        /// </summary>
        public DataStructure()
        {
            Header = new StructureHeader();
            Content = new List<SectionContent>();
        }

        /// <summary>
        /// Initializes a new instance of the DataStructure Class using given parameters.
        /// </summary>
        /// <param name="companyLogo">Company Logo Image</param>
        /// <param name="header">Header structure</param>
        /// <param name="content">List of section contents</param>
        public DataStructure(Image companyLogo, StructureHeader header, List<SectionContent> content)
        {
            CompanyLogo = companyLogo;
            Header = header;
            Content = content;
        }

        /// <summary>
        /// Initializes a new instance of the DataStructure Class making a copy of given DataStructure parameter.
        /// </summary>
        /// <param name="dataStructure"></param>
        public DataStructure(DataStructure dataStructure)
        {
            CompanyLogo = dataStructure.CompanyLogo;
            Header = dataStructure.Header;
            Content = dataStructure.Content;
        }
        #endregion
    }
}
